package org.ishequ.smssendlistener;

import org.ishequ.domain.MessageItem;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.widget.Toast;

public class SMSHandler extends Handler {

	private Context context;
	
	public SMSHandler(Context context){
		this.context = context;
	}
	
	@Override
	public void handleMessage(Message msg) {
		MessageItem item = (MessageItem) msg.obj;
		Toast.makeText(context, "收到:"+item.getBody(), 0).show();
	}
	
	
}
